﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebAdmin/MasterPage_WebAdmin.master" AutoEventWireup="true" CodeBehind="AdsListAdsPage.aspx.cs" Inherits="Ones.WebAdmin.AdsListAdsPage" %>

<%@ Register TagPrefix="uc" TagName="Pager" Src="~/Utils/UserControls/Pager.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server"> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <div class="widget">
                <div class="widget-header">
                    <i class="icon-table"></i>
                    <h3>
                        Advertisement
                    </h3>
                </div>
                <div class="widget-content">
                    <div class="example_alt_pagination">
                        <div id="container">
                            <div class="full_width big"> </div>
                            <div id="demo">
                                <!--------- CONTENT TABLE ------------->
                                <table class="table table-striped table-images">
                                    <thead>
                                        <tr>
                                            <th>
                                                Contact
                                            </th>
                                            <th>
                                                Block
                                            </th>
                                            <th>
                                                Expire
                                            </th>
                                            <th>
                                                Active
                                            </th>
                                            <th>
                                                Link
                                            </th>
                                            <th>
                                                Image Location
                                            </th>
                                            <th>
                                                Click Count
                                            </th>
                                            <th>
                                                &nbsp;
                                            </th>
                                            <th>
                                                &nbsp;
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <asp:Repeater ID="rpt" runat="server" OnItemCommand="rpt_ItemCommand">
                                            <ItemTemplate>
                                                <tr>
                                                    <td>
                                                    <%#Eval("advContName")%>
                                                    </td>
                                                    <td>
                                                    <%#Eval("blkName")%>
                                                    </td>
                                                    <td>
                                                    <%#Eval("advDateExpire")%>
                                                    </td>
                                                    <td>
                                                    <%#Eval("advActive")%>
                                                    </td>
                                                    <td>
                                                        <a class="text-info" href='<%#Eval("advLink")%>'>
                                                        <%#Eval("advLink")%>
                                                        </a>
                                                    </td>
                                                    <td>
                                                    <%#Eval("advImageLink")%>
                                                    </td>
                                                    <td>
                                                    <%#Eval("advClickCount")%>
                                                    </td>
                                                    <td>
                                                        <asp:Button CssClass="btn btn-default" runat="server" Text="Detail" CommandName="detail" CommandArgument='<%#Eval("advId") %>'/>
                                                    </td>
                                                    <td>
                                                        <asp:Button CssClass="btn btn-warning" runat="server" Text="Edit" CommandName="edit" CommandArgument='<%#Eval("advId") %>'/>
                                                    </td>
                                                    <td>
                                                        <asp:Button CssClass="btn btn-danger" runat="server" Text="Delete" CommandName="delete" CommandArgument='<%#Eval("advId") %>'/>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </tbody>
                                </table>
                                <div class="clearfix">
                                    <uc:Pager ID="pager" runat="server" Url="AdsListAdsPage.aspx" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphScript" runat="server"> </asp:Content>
